function GuiDialogIPayment() {
};

GuiDialogIPayment.instance = function(prefix) {
  return { customNo: document.getElementById(prefix + '_customNo_div'),
           orderTab: document.getElementById(prefix + '_orderTab_div'),
           payment: { price: document.getElementById(prefix + '_price_div'),
                      received: document.getElementById(prefix + '_received_div'),
                      anticipated: document.getElementById(prefix + '_anticipated_div'),
                      pay1: { container: document.getElementById(prefix + '_payment1_div'),
                              fee: document.getElementById(prefix + '_payment1_text'),
                              percent: document.getElementById(prefix + '_paymentPercent1_div'),
                              cash: document.getElementById(prefix + '_depCash_radio'),
                              bank: document.getElementById(prefix + '_depBank_radio'),
                              cheque: document.getElementById(prefix + '_depQueck_radio'),
                              payBtn: document.getElementById(prefix + '_paid1_button'),
                              history: document.getElementById(prefix + '_paidHistory1_div'),
                              paid: document.getElementById(prefix + '_paid1_div'),
                              paidc: document.getElementById(prefix + '_paidc1_div'),
                              due: document.getElementById(prefix + '_due1_div')
                            },
                      pay2: { container: document.getElementById(prefix + '_payment2_div'),
                              fee: document.getElementById(prefix + '_payment2_text'),
                              percent: document.getElementById(prefix + '_paymentPercent2_div'),
                              cash: document.getElementById(prefix + '_payment2Cash_radio'),
                              bank: document.getElementById(prefix + '_payment2Bank_radio'),
                              cheque: document.getElementById(prefix + '_payment2Queck_radio'),
                              payBtn: document.getElementById(prefix + '_paid2_button'),
                              history: document.getElementById(prefix + '_paidHistory2_div'),
                              paid: document.getElementById(prefix + '_paid2_div'),
                              paidc: document.getElementById(prefix + '_paidc2_div'),
                              due: document.getElementById(prefix + '_due2_div')
                            },
                      pay3: { container: document.getElementById(prefix + '_payment3_div'),
                              fee: document.getElementById(prefix + '_payment3_text'),
                              percent: document.getElementById(prefix + '_paymentPercent3_div'),
                              cash: document.getElementById(prefix + '_payment3Cash_radio'),
                              bank: document.getElementById(prefix + '_payment3Bank_radio'),
                              cheque: document.getElementById(prefix + '_payment3Queck_radio'),
                              payBtn: document.getElementById(prefix + '_paid3_button'),
                              history: document.getElementById(prefix + '_paidHistory3_div'),
                              paid: document.getElementById(prefix + '_paid3_div'),
                              paidc: document.getElementById(prefix + '_paidc3_div'),
                              due: document.getElementById(prefix + '_due3_div')
                            },
                      pay4: { container: document.getElementById(prefix + '_payment4_div'),
                              fee: document.getElementById(prefix + '_payment4_text'),
                              percent: document.getElementById(prefix + '_paymentPercent4_div'),
                              cash: document.getElementById(prefix + '_payment4Cash_radio'),
                              bank: document.getElementById(prefix + '_payment4Bank_radio'),
                              cheque: document.getElementById(prefix + '_payment4Queck_radio'),
                              payBtn: document.getElementById(prefix + '_paid4_button'),
                              history: document.getElementById(prefix + '_paidHistory4_div'),
                              paid: document.getElementById(prefix + '_paid4_div'),
                              paidc: document.getElementById(prefix + '_paidc4_div'),
                              due: document.getElementById(prefix + '_due4_div')
                            }
                    }
  }
};